﻿using Microsoft.AspNetCore.Mvc;
using NetCoreDemo.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace NetCoreDemo.Controllers
{
    public class LoginController : Controller
    {
        private readonly LoginSerives _LoginSerives;
        public LoginController(LoginSerives LoginSerives)
        {
            _LoginSerives = LoginSerives;
        }
        public IActionResult Index()
        {  
            return View(_LoginSerives.GetData());
        }
    }
}
